﻿using System.Collections.Generic;
using DataAccess;

namespace DataAccess
{
    public class User : ServiceObject
    {
        public User()
        {
        }

        public User(string login, string password, string email, Role role)
        {
            Login = login;
            Password = password;
            Email = email;
            Role = role;
        }

        public User(long id, string login, string password, string name, string surname,
                    string middleName, string email, string tel, string info, ICollection<Education> educations,
                    IList<EducationGroup> groups, ICollection<UserEvent> userEvents, Role role)
        {
            Id = id;
            Login = login;
            Password = password;
            Name = name;
            Surname = surname;
            MiddleName = middleName;
            Email = email;
            Telephon = tel;
            Info = info;
            Educations = educations;
            Groups = groups;
            UserEvents = userEvents;
            Role = role;
        }

        public string Login { get; set; }

        public string Password { get; set; }

        public string Name { get; set; }

        public string Surname { get; set; }

        public string MiddleName { get; set; }

        public string Email { get; set; }

        public string Telephon { get; set; }

        public string Info { get; set; }

        public ICollection<Education> Educations { get; set; }

        public IList<EducationGroup> Groups { get; set; }

        public ICollection<UserEvent> UserEvents { get; set; }

        public Role Role { get; set; }
    }
}